<div class="ui teal segment">
    {% for tag in tag_list %}
        <a href="{% url 'blog:tag_detail' tag.id %}" target="_blank" class="ui teal basic left pointing label m-margin-tb-tiny">
            {{ tag.name }}
            <div class="detail">{{ tag.num_posts }}</div>
        </a>
    {% endfor %}
</div>